package com.seawaterbt.ssm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seawaterbt.ssm.config.DataSource;
import com.seawaterbt.ssm.config.DataSourceEnum;
import com.seawaterbt.ssm.entity.CzDatCrewData;
import com.seawaterbt.ssm.entity.CzDatCrewDataHistory;
import com.seawaterbt.ssm.mapper.CzDatCrewdataHistoryMapper;
import com.seawaterbt.ssm.mapper.CzDatCrewdataMapper;
import com.seawaterbt.ssm.service.CzDatCrewdataHistoryService;
import com.seawaterbt.ssm.service.CzDatCrewdataService;
import org.springframework.stereotype.Service;

@Service

public class CzDatCrewdataHistoryServiceImpl extends ServiceImpl<CzDatCrewdataHistoryMapper, CzDatCrewDataHistory> implements CzDatCrewdataHistoryService {

    @DataSource(DataSourceEnum.DB2)
    @Override
    public boolean saveOrUpdate(CzDatCrewDataHistory entity) {
        return super.saveOrUpdate(entity);
    }

    @DataSource(DataSourceEnum.DB2)
    @Override
    public boolean save(CzDatCrewDataHistory entity) {
        return super.save(entity);
    }
}
